/**
 * Project: apollo-base-dal
 * 
 * File Created at 2017年2月19日
 * 
 * Copyright 2015-2016 dx.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DongXue software Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with dx.com.
 */
package com.dx.pf.dal.conf;

import com.alibaba.druid.pool.DruidDataSource;

/** 
* @ClassName: ShardContext 
* @Description: 分片上下文
* @author wuzhenfang(wzfbj2008@163.com)
* @date 2017年2月19日 下午2:46:34 
* @version V1.0 
*/
public class ShardContext {

	/**逻辑数据名称*/
	private String logicDatabaseName;
	/**物理数据名称*/
	private String physicsDatabaseName;
	
	/**逻辑表名称*/
	private String logicTableName;
	/**物理数据名称*/
	private String physicsTableName;
	
	/**分片字段*/
	private String[] columns;
	/**分片字段值*/
	private Object[] values;
	
	/**分片规则计算数据源*/
	private DruidDataSource dataSource;
	
	/**
	 * @return the logicDatabaseName
	 */
	public String getLogicDatabaseName() {
		return logicDatabaseName;
	}
	/**
	 * @param logicDatabaseName the logicDatabaseName to set
	 */
	public void setLogicDatabaseName(String logicDatabaseName) {
		this.logicDatabaseName = logicDatabaseName;
	}
	/**
	 * @return the physicsDatabaseName
	 */
	public String getPhysicsDatabaseName() {
		return physicsDatabaseName;
	}
	/**
	 * @param physicsDatabaseName the physicsDatabaseName to set
	 */
	public void setPhysicsDatabaseName(String physicsDatabaseName) {
		this.physicsDatabaseName = physicsDatabaseName;
	}
	/**
	 * @return the logicTableName
	 */
	public String getLogicTableName() {
		return logicTableName;
	}
	/**
	 * @param logicTableName the logicTableName to set
	 */
	public void setLogicTableName(String logicTableName) {
		this.logicTableName = logicTableName;
	}
	/**
	 * @return the physicsTableName
	 */
	public String getPhysicsTableName() {
		return physicsTableName;
	}
	/**
	 * @param physicsTableName the physicsTableName to set
	 */
	public void setPhysicsTableName(String physicsTableName) {
		this.physicsTableName = physicsTableName;
	}
	/**
	 * @return the columns
	 */
	public String[] getColumns() {
		return columns;
	}
	/**
	 * @param columns the columns to set
	 */
	public void setColumns(String[] columns) {
		this.columns = columns;
	}
	/**
	 * @return the values
	 */
	public Object[] getValues() {
		return values;
	}
	/**
	 * @param values the values to set
	 */
	public void setValues(Object[] values) {
		this.values = values;
	}
	/**
	 * @return the dataSource
	 */
	public DruidDataSource getDataSource() {
		return dataSource;
	}
	/**
	 * @param dataSource the dataSource to set
	 */
	public void setDataSource(DruidDataSource dataSource) {
		this.dataSource = dataSource;
	}
	
	
}
